
<form id='pagerForm' method='post' action='<?= URL('interfaces/analyzeInterface'); ?>'>
	<input type='hidden' name='keywords' value='${param.keywords}' />
	<input type='hidden' name='pageNum' value='<?php echo $page['pageNum']?>' />
	<input type='hidden' name='numPerPage' value='<?php echo $page['numPerPage']?>' />
</form>
<div class='pageHeader'>
	<form onsubmit='return navTabSearch(this);' action='<?= URL('interfaces/analyzeInterface'); ?>' method='post'>
	<div class='searchBar'>
		<table class='searchContent'>
			<tr>
				<td>
						日期：<input type="text" name="data" class="date textInput readonly valid" datefmt="yyyyMMdd" readonly="true">
						<a class="inputDateButton" href="javascript:;">选择</a>
				</td>
			</tr>
		</table>
		<div class='subBar'>
			<ul>
				<li><div class='buttonActive'><div class='buttonContent'><button type='submit'>检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class='pageContent'>
<!--	<div class='panelBar'>-->
<!--		<ul class='toolBar'>-->
<!--			<li><a class='add' href='--><?//= URL('interfaces/addinterface'); ?><!--' target='navTab' rel='addinterface'><span>添加</span></a></li>-->
<!--			<li><a class='edit' href='--><?//= URL('interfaces/updateinterface'); ?><!--?id={list_id}' target='navTab' rel='updateinterface'><span>修改</span></a></li>-->
<!--			<li><a class='delete' href='--><?//= URL('interfaces/deleteinterface'); ?><!--?id={list_id}' target='ajaxTodo' title='确定要删除吗?'><span>删除</span></a></li>-->
<!--		</ul>-->
<!--	</div>-->
	<table class='table' width='100%' layoutH='138'>
		<thead>
			<tr>
				<th width='80'>接口ID</th>
				<th width='80'>接口</th>
				<th width='80'>调用总数</th>
				<th width='80'>失败总数</th>
				<th width='80'>成功率</th>
				<th width='80'>操作</th>
			</tr>
		</thead>
		<tbody>
			<?php foreach ($data as $key => $value) {?>			
				<tr target='list_id' rel='<?=$value['id']?>'>
					<td><?=$value['interface_id']?></td>
					<td><?=$value['interface_name']?></td>
					<td><?=$value['sum']?></td>
					<td><?=$value['fail_sum']?></td>
					<td><?php echo floor(($value['sum']-$value['fail_sum'])/$value['sum'])*100 . "%";?></td>
                	<td>详情</td>
				</tr>
			<?php } ?>
		</tbody>
	</table>
	<div class='panelBar'>
		<div class='pages'>
			<span>显示</span>
			<select class='combox' name='numPerPage' onchange='navTabPageBreak({numPerPage:this.value})'>
				<option value='20'>20</option>
				<option value='50'>50</option>
				<option value='100'>100</option>
				<option value='200'>200</option>
			</select>
			<span>条，共<?php echo $page['total'];?>条</span>
		</div>
		<div class='pagination' targetType='navTab' totalCount='<?php echo $page['total'];?>' numPerPage='<?php echo $page['numPerPage']?>' pageNumShown='10' currentPage='<?php echo $page['pageNum']?>'></div>
	</div>
</div>